Fixed Module type deserialization
Fixed failing test

Forgot to add new dependencies
Merge branch 'feature/serialize' into develop