support #to_h, #to_hash in Behavior#==