Fixed issue reading in serialized nested data

This is similar to a problem that I previously fixed for serialization
in the output direction.