Refactor propdef/descdef handling to ensure canonical key ordering, and flag individual missing lines.