Fix copying of pointers in structs
Merge pull request #14 from zackbloom/master

Fix copying of pointers in structs