Use __typeof__ instead of typeof to avoid errors and warnings
Merge pull request #12 from kgn/master

__typeof__