protobuf2json: pass errors from nested messages, cover all memory and jansson errors