replace constants in ID attributes ('name'), too (but don't literalize bools etc), refs #388