Add some classes to make it easier to define intrinsics. Add min/max intrinsics.