fixed a bug where the serialization was not able to handle list of primitives.