SameValue etc algorithms for typed objects.