minor cleanups of NewStim code