Add a Kind helper function

This is important because the recent change in Key in
a0fb89e8d950f972170506508c2bbadf815c0708 broke incomplete keys. So things
like g.Key(&User{}).Kind() would panic with a nil reference error.