Make chunk IDs strings and fix programGlobal

programGlobal is set to chunkClass.prototype, not chunkClass. Chunk IDs
are made to always be strings, rather than a mix of strings and numbers
as they previously were.