Fix range_hash sym to string conversion. Add tests.

range_hash method was failing when the key was a Symbol.