Use NBExternalString to get string handling correct

- also added git_otype mapping for enum type

Signed-off-by: Stefan Marr <git@stefan-marr.de>