Core: Use std::array for managing kernel object space

These avoid relying on memset for clearing the arrays.