Revert "renamed TaskVar to NestedVar"

This reverts commit b20ac6fd157a6965877e85a9ff19a8a9c461fea4.
added caching to Var