Avoid calling get_uniform(max=1)

Calling get_uniform(max=1) results in a read_bits(n=0),
In get_uniform, the n param is renamed to max to clarify the
semantics. Asserts are added to detect calls to get_uniform()
and get_bits() that don't actually read anything.

Closes #76
7 jobs for master in 1 minute and 59 seconds (queued for 2 seconds)