some minor cleanups
mostly working mem, for traces, non-rpython
ported stuff to reduced traces