Made $bytes by ref in decodeIntValue to allow for chained decodes