Fix a few issues with Repeated matching.
Fix a few issues with Repeated matching.

corywalker/cas,corywalker/expreduce,cekdahl/expreduce,corywalker/expreduce,corywalker/cas,corywalker/expreduce,cekdahl/expreduce,cekdahl/expreduce,corywalker/cas