Added global uniform type checking.

Preparing to add local uniform type checking.