Handy little implementation of map that indexes instances in a ReferenceCollection by a key of your choosing.