make ResourceCollection behave more like a Hash

unneeded complexity is unneeded