Fix handling of rubies passed as hashes