Add __getitem__ support to ClassMap