Add a class check before -[GTRepository isEqual:]