add size parameters to formatCollection (closes #3871)