Simplify lazy.dom and lazy.node logic for simpler extensibility

Simplify lazy.dom and lazy.node logic for simpler extensibility