hh --auto-complete --json: add details about function types @override-unit-failures

Summary: I am not sure if this is a good layout for json output.

This is one of my first ocaml diffs, any comments about anything are welcome :)

Reviewed By: @joelbeales

Differential Revision: D1428333