Cope better with missing __str__ method on Restriction subclasses
Check version passed to VersionRestriction is pre-parsed