Metadata: moved DbPrimitiveType and MapPrimitiveType to public namespace. Closes #2054.