Add support for rvalue reference parameters on factories.  I don't really understand this code.