Add support for querying attribute and uniform size to ShaderProgram

Add support for querying attribute and uniform size (fix issue 742)