Rename definition functions to 'register*' and fix up locations by
preferring 'grid.segments' syntax.

Also slight fixes to units in gradients.