Use 'perfect forwarding' of arguments to plugins

The old code could not support rvalue references in plugin constructors
because the code was not using C++11 'perfect forwarding' idiom.