avcodec/jpeg2000dwt: Move large arrays used in the test code away from the stack