Add itop and ptoi functons.

    Slightly (but not much) nicer than casting. The only feature
    I really miss from C++ in C: Generics.
Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/mc