FTL: Tidy up API

Move array_traits.h to details, and rename enum_cast to its proposed
C++23 counterpart.

Bug: 185536303
Test: ftl_test
Change-Id: I432448d388d388491066ef37db05c5b9d67550bc
6 files changed