OPTIM module: fix for broken debug builds (MSVS2010/2012)

Fixed functionality are not tested.

```
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(373): error C2039: 'iterator_category' : is not a member of 'cv::MatIterator_<_Tp>'
...
```