dom/document: fix #inspect
dom/builder: raise when there's no builder