had to check if every result is element, otherwise it will break Element.toQueryString
I checked, using Array.forEachMethod, if other methods return typeOf 'array'
and found two other methods other than map, splice and slice.
With this patch I address the clone() but not the flatten() method, because i think the latter should correctly return an array.
added flatten to the list of the method to fix
removed useless always-true checking
using short-circuit to avoid looking for all the elements if not on map
changed coding standard to adhere to mootools standards (i hope so :P)