cart: allow BIGINT for rf_train

Jira: madlib-764

Currently, rf_train won't work if the ID field is a BIGINT. I modified
the function of __sample_with_replacement to correctly handle BIGINT
numbers.