Relevance of coordinate and particle-number scaling in density-functional theory