Added roundtrippable fromString() to ApplicationType and ModuleType

Fixes #108