Fix for #3181: jbig2 encoding for number of instances greater than 1