rima.lua, irina.lua: remove deprecated code, fix stack overflow