demap
Deserialize a map of key value pair objects. You must pass 2 factory functions that each take a buffer and returns an instance of the key or value object (consuming some of the buffer)
fun <K, V> demap(ret: AbstractMutableMap<K, V>, Kfactory: (BCHserialized) -> K, Vfactory: (BCHserialized) -> V): AbstractMutableMap<K, V>