grid_coords fixing, again

longer rows should go on top whether sgn is positive or negative.

also, allow a user-specified number of columns.

and a user-specified circle radius if the number of columns leads to a
bad circle size with the default calculation.
update minified source