Profiling fixes

A few fixes related to https://github.com/uwescience/myria-web/issues/226

(And one fix that isn't.)
agree that it does not make much of a difference.

it saves us a O(72)-size hashtable over just query/fragment, at the moment, so it probably couldn't / wouldn't save us much unless we had 1000's of machines or more.