Minor API fixes and cleanups in ULDocument
Merge pull request #12035 from soulmen/master

Update to ULDocument 1.0.1