Implement reductions with optional skipna argument