Fix minor logic bug in inc() in iql.js