Fix #311
Merge pull request #312 from nodegit/fix-issue-311

Fix #311
make Repository.initExt normalize options
add test for initExt