Merge pull request #2184 from bergerkiller/master

Fixed explicit cast and slightly improved logging
Check used and undefined Uniform

I know it make lot of warning, but we are supposed to fix it, not
ignore it.

Signed-off-by: L5D <L5D@L5D-PC>
Remove useless stuff

Signed-off-by: L5D <L5D@L5D-PC>
Fix uniform check
Add method to check attributes usage

Signed-off-by: L5D <L5D@L5D-PC>
Fixed invalid cast, improved attrib type name lookup

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>