- in p/document, check types of user-supplied arguments for better error   messages - documents parsed from octet vectors don't have a base sysid, so don't try   to merge it into  sysids referenced in such documents
- in p/document, check types of user-supplied arguments for better error
  messages
- documents parsed from octet vectors don't have a base sysid, so don't try
  to merge it into  sysids referenced in such documents

bobbysmith007/cxml,TBRSS/cxml,bobbysmith007/cxml,dmitryvk/cxml,TBRSS/cxml,dmitryvk/cxml