fix for issue13529  https://issues.dlang.org/show_bug.cgi?id=13529

https://issues.dlang.org/show_bug.cgi?id=13529

did not compare all parts of sub when wchar or dchar