[fix] Zero `count` after declaration
[fix] Free `result` if unable to alloc more memory
[test] Test `saneopt_get_all` with aliases