persistence: clean up typed arrays after deserializing