Update memberof output filter to return integer (0 or 1)

This change mirrors the other conditional output filters that all return an integer `0` or `1` instead of a `boolean`

Also, this fixes #5612 related issue mentioned near the bottom.