AutomaticJsonCodecBuilder improvements

Use Use JsonCodec#apply to find codecs, and make discovered codecs
private.