warn on -s X=Y of invalid keys, and suggest corrections; fixes #2579