widl: Register the PSFactoryBuffer class as factory if it's defined in the idl file.