anchor.diff:    sumo:schema_name(), riakc_map:crdt_map()
   ) -> sumo_internal:doc().
   rmap_to_doc(DocName, RMap) ->
  -  wakeup(sumo_internal:new_doc(DocName, rmap_to_map(RMap))).
  -
  --spec rmap_to_map(riakc_map:crdt_map()) -> map().
  -rmap_to_map(RMap) ->
  +  wakeup(sumo_internal:new_doc(DocName, rmap_to_map(DocName, RMap))).
  +
  +-spec rmap_to_map(sumo:schema_name(), riakc_map:crdt_map()) -> map().
  +rmap_to_map(DocName, RMap) ->
     lists:foldl(fun
       ({{K, map}, V}, Acc) ->
  -      maps:put(
  -        sumo_utils:to_atom(K), rmap_to_map({map, V, [], [], undefined}), Acc);
  +      NewV = rmap_to_map(DocName, {map, V, [], [], undefined}),
  +      maps:put(sumo_utils:to_atom(K), NewV, Acc);
       ({{K, _}, V}, Acc) ->
         maps:put(sumo_utils:to_atom(K), V, Acc)
     end, #{}, riakc_map:value(RMap)).
  
positive.code: %% put_opts: Riak write options parameters.
  %% del_opts: Riak delete options parameters.
  %% <a href="http://docs.basho.com/riak/latest/dev/using/basics">Reference</a>.
  -record(state, {
    conn     :: connection(),
    bucket   :: binary() | {binary(), binary()},
  
negative.code:   FieldValue.
  
  %% @private
  wakeup_custom(FieldValue, FieldType) ->
    case lists:member(FieldType, [term, tuple, map, list]) of
      true -> binary_to_term(base64:decode(FieldValue));
      _    -> FieldValue
    end.
  
  %% @private
  doc_id(Doc) ->
  