fix glitch in constant folding of slices
strip multiplication factor when recursively folding empty sequences
simplify some code
allow visitor dispatch methods in pylint