Fix for possible couple creation from broken groups
Changed memory accounting scheme for flowmastermind