Fix bugs in removing systems

These are issues uncovered after plenums and during testing, but they
are seemingly long standing issues.  OpenStudio could crash in worse
case scenario and often leave artifacts of deleted systems cluttering up
the model.  The new method is also slightly faster because system
components are bulk removed instead of removing one by one and maintaing
system continuity at each step.