Treat unary struct and enum variants as rvalues

Closes #11681