Update Shape.java

Small ordinal fix in shape as per jniGetType(). 
Now Shape.Type.Polygon.ordinal()returns 2 as expected.