Make all points functions in math_base N-dimensional.

Doesn't make much difference right now but makes things consistent and is
  likely to be essential when many-axis machines and shapes are considered.