Instrument the opt/kw protocol for feature-specific profiling.

That code is only executed for higher-order uses of these functions,
otherwise protocol gets optimized away.
Add instrumentation to profile generic sequence overhead.
Instrument send dispatch for feature-specific profiling.
Instrument TR casts / asserts for feature-specific profiling.
Instrument pattern matching for feature-specific profiling.
Export analysis function for use by the feature-specific profiler.