Fix issue with templated callSync function so that it can be used easily on functions taking rvalue arguments