Bug fix where toArray() wasnt called on nested queries/filters