PyMC Compilation Nesting with pytensor.scan

Perhaps @lucianopaz or @aseyboldt have an idea how that flag should be propagated or if it’s a bug in PyTensor?