Fixed memory leaks (avoid generation of unused results)
Emit the same error messages as without O+ (use "dups_fix" hack only for classes)