Implemented cache in Scope
Removed RootScope
Implemented function subset, including support for string and scalar