Profiling fixes

A few fixes related to https://github.com/uwescience/myria-web/issues/226

(And one fix that isn't.)
:+1: