Fix forEach() to work with objects and arrays
Use accessProp() in collection key generator