allow read-only access to getopt_factory
add method getGetoptParser()
add test for #32