Fix recently-introduced bugs in iql.js