Make repacketizer API use opus_int32 for lengths and add some additional error handling.