Check collection limit

As per https://issues.apache.org/jira/browse/CASSANDRA-5428, it is dangerous to have more than 65535.

This PR check collection size and raise an error if there's more than 65535 elements.