include type in mappings serialization