Accelerator: Implements str/re and sequences

Please see qed/optimizer.md for details.