Preparation or screening of tagged libraries