Fixed bug on invariant validation for dict collections