Polish RestartPolicy

Fix a minor serialization issue, add parsing and toString capabilities, some tests and documentation