dm: Add more livetree helpers and definitions