hpacker: Add CStringBank

Helper class to count offsets and write out strings in HPK index.
hpacker: Fix mistakes in code

Fixed typos and forgotten declarations.