Added appendUint16 and appendUint32.