Fix doc test failures after ScaleFactor changes …
ScaleFactor now needs a number type annotation in addition to the units. Incidentally needed to include use statements.