Added capability detection for vertex arrays and uniform blocks

Since some other creation methods return `Result<>`, we could use the same pattern here (instead of error!).