Cosmit: more idiomatic way of clipping to zero.

The test also runs 300 milliseconds faster on my machine (1.3s instead
of 1.6).
Demystify magic values in NNLS implementation.