wcs{p2s,s2p}: make sure nelem >= naxis