Added capability detection for vertex arrays and uniform blocks

Can we pass just the capabilities there (instead of the whole device)?