Fix potential exception with ReversedType in DynamicCompositeType

patch by timw; reviewed by slebresne for CASSANDRA-7898