Resolve ReferenceError in BBNB#toBuffer(true), fixes #35