Fix bug in RegexpLiteral concerning --auto-gen-config

Fixes #847.