Avoid implicit representational equality.
Add failing tests for broken reference return.