Fix typo in core-config.cmake.in

Fix type issue with variant::visit, where Ts would be passed in instead
of Ts& or Ts const&.