Make last argument of QueryCollection.template optional.