Small cleanup to serialization

[read|write]_int[16|32]_func will be removed in the near future once nqp-m gets a new bootstrap