Add list/array type support in utils.RandomSample