Support stacking one-hot vectors for batches.