Fix a bunch of things that break under closure advanced optimizations.  Now, to my knowledge, embind fully supports closure advanced mode.