fixes towards config rewrite.  Move a couple of math constants to stemtypes from stem3