strip dimnames for 1d arrays