Maintain uniques on models whose id is set later (fixes #13)