Improved error when request nonsensical collect

When you request a collect sum on a string (or similar),
you should receive a 400 bad request.