autoCreateRanges with Zero-Values

Automatic creation of range rules doesnt work with zero-values, e.g. min="0" max="150". Checking for type avoids that.