If no dimnames, return NULL and not list of NULLs
restore_null_dimnames(x)
x
An array object
The object with NULL if no dimnames