The decorated function returned by ContextDecorator.__call__ has the same call signature as the original function. Closes #4382.