[geometry] added RescalePolicy template-parameter.
Where that was applied and possible, moved template-parameter to methods
instead of to classes.

This is a large commit, but contains no functional changes.
[geometry] Remove trailing spaces.
For the rest this commit contains nothing.