renamed key_hash to hash;

enforced const correctness on function pointers within map