Fix detection of if a VI just needs to change resources, vs restarting.

Fixed #178.