Better support for FirstOrDefault projection. Plus various fixes.