added new BasicTextOutputStream (equiv of StringBuffer/StringBuilder wostringstream) and simple regtest for it