copyLikeDimension fast paths and special cases with elaborate unit tests