more copy optimizations, and additions to unit tests
Merge pull request #94 from torch/copyoptims

more copy optimizations, and additions to unit tests