Add new uniform error test.

Based on josephwilk's feedback in Issue #23, added another test
regarding error recovery.
More fixes for issue #23

Add a check for setting user-data uniforms when the shader fails
compilation.  Also reset global state to default values when starting a
new window.  Seems to get things in a much better state.