Allow relation fields to be keyField in query lists

Signed-off-by: Tom Wright <tom@inflatablecookie.com>