Fixed kx.iterator implement function so it also works with objects

This fixes kx.iterator methods which use the implement function so they can be used with objects in the collection
Could you change this so it uses the type function to obtain the constructor?
e.g. `list = new window[type(collection, true)]()`