Fix DeMangleVarRefString with special symbols in legacy array indices

Activate acceptance test. Close #4301