Fixed 'Bug 17621 - ToString() code generation is duplicated.'.