voidcheck string pointers and reenable attr test

The attr test was failing (and being skipped) because of a segfault. Some libgit2 functions that output to char** just don't even allocate the inner string if they have no output, so we need to voidcheck the inner pointer. Combined with a tweak to make git_attr_get async and to make the templates recognize its return, the test passes.