Fixed bug in equals method generation.