added support for built-in types serialization