pmd: fix ignored property minimumLength of rule AvoidDuplicateLiterals

The rule AvoidDuplicateLiterals ignores its property minimumLength
because it is set not until after the source code has been analyzed.
This change fixes the problem and provides tests.