Create a CBOR byte string from a feature collection.

def dumps(self):
        '''Create a CBOR byte string from a feature collection.'''
        metadata = {'v': 'fc01'}
        if self.read_only:
            metadata['ro'] = 1
        rep = [metadata, self.to_dict()]
        return cbor.dumps(rep)