Fixed bugs related to Any.toString method.