Refactoring the end of stacking
fixes also an issue in cosmetic correction and possibly a memory consumption issue after stacking from scripts where gfit was always allocated various static analysis fixes throughout the code
fixes also an issue in cosmetic correction and possibly a memory consumption issue after stacking from scripts where gfit was always allocated various static analysis fixes throughout the code