Default auto key to id when '', hopefully fixes #668