Improve the treatment of 'seq' (Trac #2273)