Update ArrayQuery_goto.class.php

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