Metadata: renamed MaterializedType to DbPrimitiveType. Part of #2054.
Metadata: renamed MappedType to MapPrimitiveType. Part of #2054.
Metadata: moved DbPrimitiveType and MapPrimitiveType to public namespace. Closes #2054.