extend_invoke: Added missing initialization of to_reference funtor