Corrected operator= of InvoluteGear and some bugs