Fixed bug where 'toArray' was called with 'this' instead of simpleQuery.