[CMake] Explicitly link test refinedp1test to dune libs.

Clean up parts of auto-generated CMakeLists.txt.