Allow dune_target_enable_all_packages to register interface libraries
Currently, if you want to add all packages to an interface library, it will fail because one cannot use PUBLIC
cope to an interface library. This MR fixes that by inspecting the type of the library and forwarding the correct scope. No change on user side needed.
Edited by Santiago Ospina De Los Ríos