On the Foundations of Cycles in Bayesian Networks