fixed bug in writing complex numbers with zero imaginary part to strings