Move struct options out of worldgen main.c.

Add standard options_alloc() and options_free() functions.
Fix sj_free() to not count sj_free(NULL) as a deallocation.