Add `objectTypes` and fix detection of global variables for Browserify [closes #32]