(fix) Bring enum variants into scope before using them.