Cleanup LiveRunner state when shutting down

- Add Dispose() to LiveRunner to do cleaning up. This is to reduce memory footprint in unit test.
- Update a test case about function redefinition;
- Notice there are some temp files in the repository, remove them. 

The related Dynamo pull request: https://github.com/ikeough/Dynamo/pull/962