Verify refcounts of lm objects. Need a decent test script for that. Some additional lua functions? Path node/message method to traverse path and return nil or node