Unbound module Bi_outbuf

Any reason you need to use atdgen specifically for JSON codecs? Why not use a Yojson PPX like ppx_deriving_yojson or ppx_yojson_conv?