Ruby. Fixed a bug from single/paried transition in which iteration through a hash resulted in key/value lists