fix a couple of case overlap checks, and add a test
allow v.value where v is a variable having enum type
allow embedded double quotes by doubling them