Result#to_hash for better jbuilder compat