Store modlist as array

+ some other fixes
Fix

What happened here?