Fixed error in determining can_be_null for joins
Fixed a error in type set intersect calculation and in tracking outer tables