Allow the profiler's sampler to collect user-specified continuation marks.
Don't splice in vector creation when optimizing vector-length.

Closes PR13788.