Fix to_h/hash bug introduced in 0.2.0