Micro-optimizations in utility functions
More reduction of interpreter stack length changes

plus some cleanup in the form of breaking up overly-long lines and removing dead vars