Some small patches

Hello, thanks for making Bonsai it was just what I needed, a small tree widget :) Here are some changes I found useful. You can see them at work here: http://docs.gl/4/glBindBuffer on the left. Let me know if you have any questions.