z3java: Restore optimizations based on z3 model parsing