Avoid using anon object in dictionary constructors