updated vertex array features and made it safer to bind stuff