Improved indexer when dealing with inheriting entities.