forEach implementation for Objects/NodeLists/Arrays, automatic type looping and context options