Added array issue-specific fix to reference.js