Core: Added unit tests to show the shape of the setNested scope bug.
Core: Fixed the setNested scope bug. Was caused by an incorrect test.
Trig: Removed debugging that was used to solve the scope bugs because it's not needed
Trig: Fixed remaining scope issues by switching to Local scope.
Core: Preparations for migrating parameters from Me to Local.