Added new method .indexOfKey (and made alias .getAtKey for existing .getById to keep naming consistent)