Remove unused and racy "used" param from streamformatter

Also tests written