check that axis is in appropriate range for stack
check that axis is in appropriate range for stack

animesh-garg/cgt,bstadie/cgt,rohanraja/cgt_distributed,animesh-garg/cgt,rohanraja/cgt_distributed,dementrock/cgt,bstadie/cgt,dementrock/cgt,dementrock/cgt,rohanraja/cgt_distributed,rohanraja/cgt_distributed,animesh-garg/cgt,bstadie/cgt