Generalized IBPNoisyOrTwoY samplers. Bug fixes in IBP samplers.