Add proper slicing support to uniforms.

We only support basic python slicing, without stepping.
Ie, [:], [1:], [:2], [1:2].
We do _not_ support multiple dimensions not do we
support stepping.