improved performance and function of qobj.tidyup (separately eliminate small real and imaginary parts)