Fix bug in decoder with packed arrays.