Allow frame collections to properly handle selectors

Current implementation for FrameCollection & IFrameCollection uses ElementCollection#elements to obtain a subset of frames. This is being done properly, but #to_a takes the indexes of this subset and applies it to the overall list of frames it finds on the page. So, the current implementation only works if the matching frames are the first ones.