fixed missing dictionaries for Memory and Doc parser contexts (problem

* xmlschemas.c: fixed missing dictionaries for Memory and Doc
  parser contexts (problem reported on mailing list)
* doc/apibuild.py: small change to prevent duplicate lines
  on API functions list.  It will take effect the next time
  the docs are rebuilt.
diff --git a/doc/apibuild.py b/doc/apibuild.py
index 94720f3..30d6943 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -1699,8 +1699,11 @@
 	    output.write("    <type name='%s'>\n" % (type))
 	    ids = funcs[type]
 	    ids.sort()
+	    pid = ''	# not sure why we have dups, but get rid of them!
 	    for id in ids:
-	        output.write("      <ref name='%s'/>\n" % (id))
+	        if id != pid:
+	            output.write("      <ref name='%s'/>\n" % (id))
+		    pid = id
 	    output.write("    </type>\n")
 
     def serialize_xrefs_constructors(self, output):