Add more extensive test coverage for an issue where typed attribute
values were not compared correctly.