[th/g-array-index] add and use nm_g_array_index() as replacement for g_array_index()
nm_g_array_index()
behaves like g_array_index()
but has nm_assert()
checks for the expected element-size and out-of-bound access.
Add and use it (almost) everywhere.