Weird weird weird

I have come across a very puzzling phenomena when trying to clone a TextureState through serialization.

The returned TextureState has a different getImageLocation() than the TextureState I'm trying to clone.

My latest guess is that in recreating the TextureState the imagelocation is generic, depending on how things look in the cache and such. Is there any truth to this? Or does someone else know whats going on?