[168] Cannot compile generated JsonEncoderDecoder with certain type hierarchy

See issue #168 for more details