Implemented use of LIBLO_WARN_INVALID_LIST.

I seem to have forgotten to do this before.
Remove excess active plugins last.

In case there are other plugins removed for other reasons.
Fleshed out lo_fix_plugin_lists tests somewhat.