Fix to_query with empty arrays too