Fix expr_free(NULL) and long format options