Have you tried to set your track to "Record: output (stereo/mono)" after having your first melody done and record it so it can get stacked into the MIDI item as a take? (You have to check too Monitor track media when recording and Preserve PDC delayed monitoring). After recording that part of the arragement you could set that VSTi you just used to Offline state and load another one. You'll just need to mute the item (MIDI/Audio) previosuly created. Ah and you have to set that track to FIPM (right-click on the track and check Selected tracks are free item position enabled) if you want to record another MIDI item to continue with another melody.