Some problems of unlikely intersections in arithmetic and geometry. With appendixes by David Masser