make Hash#[] work according to other implementations