Minor fix to sanity check test case

should cast to Int64 not int
Refactoring call site to deprecate code that isn't being used

And increasing the protection on internal only methods
Add the ability to clean the TLS by injecting k -> null

Which result in the the named slot being freed
Addition of basic TLS clear

After this each dispatch should have a clear TLS - so trace can get activated for the Dynamo-Revit nodes
Migrate TLS clear to just prior to execute

So that replicated dispatches get set properly
Callsite cleanup

Refactoring and method grouping and reordering
Further refactoring

Prior to trace implementaiton