Fetch decodeParams if it's a |Ref| in JBIG2Decode streams

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1064894.
Moving it seems reasonable, but we also need it in the `isArray` case otherwise we don't actually fix the bug.
The `xref` variable has been added.