XD-1613 More flexible argument handling, further changes

1) Prevent ; or | from ending lexing if in open quotes
2) Allow > to end lexing if quotes not open