arrays: Move type enumerator implementation to .cpp. (#7216)