Fixed comparison against few function arguments from using strict equality === with null to equality == as undefined values wouldnt cause the default values to be assigned which could cause leaks as cleanup wouldnt get triggered and default zOrdering wouldnt be set properly