add size checking to wcs{p2s,s2p}