Put back in automatic unit selector for distmod with array support

Just as it says.  This now uses the mean of the log of all the values, which is a reasonable heuristic for what a human might do to try to generally get small numbers but typically-used units.