Fixes bug with assignment of ConstantRangeType

Fixes issue where assignment of ConstantRangeType with a numpy array was failing.