Add Water.dump() to handle cyclic graphs