Shorten code a bit

When a single-element array is passed, we can just pass a pointer to the single
element instead.