Check return value of BitStream_expand
Merge pull request #46 from tklauser/fixes

Check return value of BitStream_expand