minor fixes for missing functions in old json-c
* upstream json_object_get_string_len returns 0 if object is not type string
* small indentation fix
Merge pull request #647 from leprechau/v3.0.x

add missing 'acct' option to struct
Merge pull request #648 from leprechau/feature-fix

minor fixes for missing functions in old json-c
Make PW_TYPE_FILE_INPUT and PW_TYPE_FILE_OUTPUT into string types
Add PW_TYPE_BOOLEAN as a proper type
Change PW_TYPE_STRING_PTR to PW_TYPE_STRING

There's no point in distinguishing between the two
Deal with boolean in more switch statements