Fix type inference for unsyntactic regexps

They get a .value of undefined, which would confuse literalType

Issue #447