Fix binding tests and update Java binding to v3

Java binding has a use-after-free, temporary fix by not `cs_free` after returning. I'm still working on a proper way to free this.