Added max and min restrictions to decimal types.