Add tests for __iternodes__(); add a getnodes() function.