apiapi_generator: fix a lot of bugs in result converters