Refactor Serverspec::Type::Package::Version.
Remove unnecessary String#dup.
Merge pull request #317 from ryotarai/refactor-version-class

Refactor Serverspec::Type::Package::Version.