Refs #4317 - Change name of bundle from '_classes_inverted_copy.cf' to '_classes_copy_invert_kept_repaired.cf', fix some comments, enhance tests and factorize code for class inversion