minor fixes to registerizeHarder, and progress on conversion to native optimizer