totally refactored the ClassMetadata class to store all mappings in a single array