made type check more robust. made ObjectID work in browser (semi). bumped version.