tal: add tal_dup_or_null and tal_dup_talarr helpers.