Drop unnecessary `type_name` argument to `#encode` and `#decode`.