[PATCH 09/21] tests/lib.sh: Use namref to access an array