turn struct pkg_license into a pkg_object
Use UCL_COUNT to return the number of elements of an ucl_object as it return 0 if the object is NULL