Added capability detection for vertex arrays and uniform blocks

Are you sure? a public field/method is not a dead code.