Code clean up for the core langauge

Code clean up based on Resharper's code analysis result. This pull request removes a bunch of dead code:
  * Local variables/properties that never used
  * Local variables that get assigned but their values never used

Some dead methods that were used in deprecate graph compiler are removed as well in this pull request.