fixing broken Mat::dump() in Java
Merge pull request #950 from apavlenko:fix_java_mat_dump