fixed serialize definitions to sized ints / uints
typing error