fixing broken Mat::dump() in Java