Fix allowing config passed in to `rest.wrap`