References / ID's work for the basic scenario; the way I tested it implies that this should work on cycles too, but will need to write a test case to check that.