Eliminate superfluous #include <cassert>
Eliminate use of assert in throw_on_error. Generate a trap instruction instead.

We may want to halt kernel execution a different way in the future, though.