Fixed bug in Random::affects().