Gets the value of a key in a map or a default value if the key doesn't exist.
the DataItem for the given key or the default value.
the key to get the value for.
the value to return if the key doesn't exist in the map.
if the data item isn't a CborMap.