[Bug 2435] Typelib-generation - probable bug in hash-function