[Fix #1001] Fix --auto-gen-config logic for RegexpLiteral

A lot of different cases to consider, so more spec examples added.
Merge pull request #1013 from jonas054/fix_1001_max_slashes

[Fix #1001] Fix --auto-gen-config logic for RegexpLiteral