Make dummyRegalloc not crash.
Parameterize RuntimeFn over register type.
Move utility function mApp to Utilities.Common.