Use `tuple` for composite pk value, fixes #477.