Add behavior restoring. Requires implementation of getConstructorals and parameterData[] constructor.