Fix the version string in dts emission.

Reported by:	Patrick Wildt
MFC after:	1 week
Some more cleanups and bug fixes in dtc for property printing / parsing.

Submitted by:	Patrick Wildt