Adjust script to work with current version and configuration of VisualEditor on English Wikipedia

* Add "bind" shim as soon as possible
* oo.compare in case of comparing functions was going into infinite loop when "bind" was shimed - replace oo.compare with out own one that handles this special case