javascript: adding support for BOOL type with symbol, `?`.
Pack was throwing error in browser.