Add Z3 logic for length/1 & tuple_size/1