Add foreach() method to the core, plus browser boolean properties