Fixed crash when compiling encoding/json

* Named_types need to be convertible not assignable in unsafe_type_conversion.