Fix null deref in ht.c
Add -g in LDFLAGS
Simplify strbuf_append
More null deref checks in ht.c
Fix build of array.c with swapped define
Do some optimizations in array.c
Do some more optimizations
Do more optimizations based on sdb_set_owned
Remove unused variable
Initial switch to the R_NEW0 party
Fix memleak and simplify sdb_set
Fix owned sdb_set_internal
Minor code cleanup