Add functions to JSON output.
Declare toJson functions const.
Fully implement ParamInfo::toJson.
Update Func::toJson.

Only Exception Handler and Function Parameter Info not yet converted.