Fixes #43, should work on NumPy 1.6+.
Merge pull request #44 from csu-hmc/issue-43

Fixes #43, should work on NumPy 1.6+.