Make acid.events.constraint() work with Collection.