cmd_diff(): use an object_array for holding trees