Fix problem introduced in previous commit in which a state variable (uniform) is written to.  (see bug 12239)

Also, added some assertions to the emit_arg() and emit_dst() functions to
catch this kind of error in the future.
1 file changed