[MONDRIAN-1791] Support isLeaf() function.