changed a isa<> and a cast to a dyn_cast<>
tuple parsing fixed.