sml: fix module generation type for library models