Fix struct equality testing