Closes #762. by=external variable on keyed dt fix