rewrite of recast.tin. probably buggy as hell, be careful. Added cast spellset to cast all missing spells.