handle case where shuffle or sample receive an empty array. fixes #1
include `-c` option when uglifying