Do (expt x k/2) carefully for complex x, add unit tests.
Merge pull request #66 from gambiteer/master

Do (expt x k/2) carefully for complex x, add unit tests.