Fixed small DataNode serialization bug

Texture nodes weren't correctly reading in their sampler names.
Fixed SerializedMaterial infinite loop detection

It didn't take into account that some nodes can feed into a parent node
twice by occupying several different input slots.
Planet material is succesfully read out from a file.