libopenjpegdec: make use of FF_ARRAY_ELEMS