Format input changes

This fixes a bug in format_input. When the input is scalar and n_outputs >1 the result of a model evaluation is not scalar. It also cleans up pprojections.py a bit.