Fixed typo in world.setMaterial

The function contained a typo: bodies is an Array and so bodies.setMaterial is undefined