collect variability from conditional nodes too
extend the purgeVariability function to support partial replacements also
renaming refactoring
remove unnecessary comment