Schemas can insert default values, so we need to be able to test the resultant files.
signed/unsigned casting issues prevented correct comparisons with the min/max constraints. account for the source type's range before doing the comparison.