Fix ensureBufferObject issues. Resolve #33

The alternative method had a flipped check and in some cases we were outputting multiple checks for the same buffer object binding.
Merge remote-tracking branch 'upstream/master' into travis-osx