EDI - found errors in writing of res/phase arrays to EDIhandler - fixed (most of) them

Signed-off-by: LK <LK@uni>