fixed bug with specs where jruby and rbx matched hash keys in different order than given array.