Resolve references in sequence commands.