.SD retains head(key) where possible, again. Thanks Arun for spotting regression in dev.