fix compiler crash on bad code (complex % x) and move directive handling in ModNode to analysis phase