TCHECK-28: Call vec on input to gen/elements to support more collections

This means collections that don't support nth can still be used with
gen/elements, and also that generation is constant-time.

Signed-off-by: Reid Draper <reiddraper@gmail.com>