generated_tests/random_ubo: fix generator and enable by default
Fixes some things that have broken over the years, and adds the generated tests to piglit runs.
Originally I pushed this to git so it didn't get lost in patchworks because it was very useful. Lets finally turn it on. I'll also be adding half float support to it in a later MR.