add a doubler factory, to allow registering class patches more easilly