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.
Merge pull request #53 from brookst/generic_doc_test

Fix doc test failures after ScaleFactor changes. r=mbrubeck