Cleaned up some VST3 code to deal with plugins that fail to initialise.
Fixed some var::equals ordering problems, and added unit tests for this.