Update ArrayQuery.class.php

minor improvements
* changed var++ to ++var, as its faster due to the implementation in PHP core