math.ranges: Add a bunch more tests for empty ranges.
prettyprint: Don't print ~1 more~ when there is only one element left. Fixes #524.
math.extras: adding ) and ] versions of linspace.