netlist-helper.c: Code cleanup, prevent error dialog popup.

Use `g_free` internal check for `NULL` instead of explicitly checking.
Use `g_free_*_full`, `g_strfreev` where appropriate.
SchematicView: Fix type warnings.