Fix ApiGen errors

Fixes all of the errors on @ADmad's list(mentioned on #2677), except for some unimplemented methods or methods with `func_get_args()`