[#3001] Add VisitContext.clausesLength() and queryPartsLength() to indicate the depth of the currently visited QueryPart tree