String gen refactoring.
Fixed https://github.com/igor-tkachev/bltoolkit/issues/263.