unnest with ORDINALITY and ORDER BY, will still NOT preserve order. If any elements are null, they will get pushed to the bottom.
This method however WILL preserver order
ARRAY(
SELECT v_users_basic[i].user_id
FROM generate_subscripts(v_users_basic, 1) AS i
ORDER BY i
)