flow: add a ->parent member to statement structs