Fix undefined behaviour (casting a pointer to a delete object)
Since at TextureHelper::removeScene the scene pointer is already dead,
casting it is undefined behaviour, so what we do to not have to do that
is make the list of scenes just be of qobject * so on remove we don't
have to cast and we juts cast when iterating, solves the undefined
behaviour and doesn't make the code much uglier