Fix for #288

This adds JSON and YAML serialization for version_info