Compare values directly instead of using `.be.ok` or `.be.undefined`
Explicitly ensure Map/Set are functions, not just truthy.