Guaranteeing unique hash in StringStack

Fixes #1260
Merge branch 'master' of github.com:WoltLab/WCF