Make parts of the parser generic to prepare the implementation of raw regexps.
Fix some warnings.
deprecations
slice::Items is now slice::Iter