stricter error checking for indexCopy
Merge pull request #45 from torch/indexCopyChecking

stricter error checking for indexCopy