Local reference table overflow in JNI code fixed.
See http://code.opencv.org/projects/opencv/wiki/OpenCV4Android