to_h workaround for Ruby < 2.1