code: function createReader(rtype, wtype) {
    return rtype.equals(wtype) ? rtype : rtype.createResolver(wtype);
  }
docs: Generate a decoder, optimizing the case where reader and writer are equal.
  
  @param rtype {Type} Reader's type.
  @param wtype {Type} Writer's type.