Fix and simplify dynamic literal regexp emitter