added tests
more tests
fixed test
fixes #2554
changelog
used strcmp instead of complex comparison, code formatting
Merge pull request #2554 from yiisoft/range-validator-bug

Range validator doesn't work well with empty values when allowEmpty=false