DERBY-6117: Give table functions more information about their execution environment; commit derby-6117-01-ab-AwareVTI.diff.