This commit adds dumping of parents, attributes and states. The expected dump output has been adjusted to match.