Add ref operator to array when needed
Fix for namespaced enums