Added some more validation functions for collections.