DC-local CAS

patch by slebresne; reviewed by jbellis for CASSANDRA-5797
Fix QueryOptions.encode order