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.