More minor optimizations for datatypes.