Allowed the gradInputs to be tables with tensors.
Ensured the needed gradOutputBuffer size.
Merge pull request #13 from fidlej/topic_nesting

Allowed the gradInputs to be tables with tensors