Reject BatchStatement with more than 64K elements

JAVA-229 #fixes