Add support for passing a Node to byId