aco: Fix invalid usage of std::fill with std::array.
In this case std::array doesn't behave like a regular array, therefore it is NOT okay to index it outside the array, even though std::fill needs us to do so.
Change the syntax to do the same thing slightly differently, and add an assertion to make sure the registers are always within the array's bounds.