Reviving support for instrumentation in CSharpCodeVisitor

Fixes #42
Do we need to generate instrumentation when we're in design time mode?