Cleaned/Fixed up the VMF serialization classes (also some testing code changed).