test: use the syntax that Steve used for ARRAYREFs.

Instead of declaring a temporary variable to store and get the ref of,
just use [] to get an ARRAYREF.