Fix iterators (issue #198)
Fix compile with MSVC (issue #199)

And use a macro to make type initialization shorter.
Merge branch 'master' into next
Fix py_str_to_git_oid for raw oids