Valve arrangements for boreholes or wells