WIP More beam tracepoints

Also some changes to include lttng as a dynamic tracing option.
Unfortunately compiling with dynamic tracing does not currently work
with R16B01. I located a couple of the problems with new semantics, but
it needs a lot more work to make it usable again.