new attribute instanceVarName via toInstanceVarName, revert classVarName via toVarName in BasicGenerator.