Adds methods for converting enumerables to lookup hashes