Fix problem with overly weak ambients for queries; fix known-related bug in assert for Dt1
Fix problem with overly weak ambients for queries; fix known-related bug in assert for Dt1

thinkpad20/urweb,urweb/debian-urweb,urweb/debian-urweb,thinkpad20/urweb,thinkpad20/urweb,urweb/debian-urweb,urweb/debian-urweb,urweb/debian-urweb