Fixed [type=number|range][min|max] rule, and add test cases.
Fixed [type=date][min] rule, and add test case.