Eliminate Function/SFunction and Apply/SApply.
Also switches from SimpleArray to ArrayTree for all TIL classes,
and fixes a few memory leaks in the parser.