feat(locators) Improve the map() function in element.all to resolve multiple promises

Resolve promises if there is an object that contains multiple promises.
Added index as a second argument to the map function callback.

Closes #392