JRuby and MRI 1.9.3 don't implement Struct#to_h