Fix xcrate enum namespacing

Closes #19293