Add type field to AbstractModuleSettings. Addresses #91.