fixing find method indices iteration

in collection.find(), the check for index was iterating the indices
object by ordinal position.  To support which do not support this, I
will use hasOwnProperty() instead and use named property indexing
instead.