implement serializationType for all primitive types and test them