util/glsl2spirv: fix bugs and clean-up a bit
I noticed this script when I was looking through what changed over the weekend, and noticed right away that there was a type bug in the argument handling. Then I noticed a few more bugs, and did some general cleanup