Better validation of collection values

patch by slebresne; reviewed by thobbs for CASSANDRA-7833