in compiler, split Prims into EasyPrims and HardPrims
compiler: minor cleanup and reformatting