Fix #22. ensure that object are not copied by value.
Merge pull request #23 from limianwang/master

Fix #22. ensure that object are not copied by value.