Fixed field dereferencing for batch insert / replace queries

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