reduce garbage on codec flag deserialization

patch by belliottsmith reviewed by dbrosius for cassandra-7244
Merge branch 'cassandra-2.0' into cassandra-2.1