glsl/ast: Make sure that image argument qualifiers match the function prototype.