fix a bug in format_input where output scalars were not returned correctly. Convert all models in projections.py to use format_input.
add a test
Merge pull request #2387 from nden/format-input-changes

Format input changes