pub fn validate(program: &Program) -> Result<()>
Validates all jump and detour targets in program refer to existing nodes.
program
Returns DialogueError::Validation on the first broken reference found.
DialogueError::Validation