Air-cooled chillers and heat pumps