Latest fixes to anyURI handling. Some is work in progress.
Added fixes for anyURI and some lingering bugs.