type checking inconsistencies

Description

If you try to compare a count to a port directly, you get the following:

but if you have a record, and mixup the types like so, it silently fails:

Environment

None

Assignee

Jon Siwek

Reporter

Justin Azoff

Labels

External issue ID

None

Components

Affects versions

Priority

Low
Configure