equals() fix

Hello,

The equals() method on classes that inherit from JsonSchema is broken. The reason for this bug is the use of chained ternary operators in equals() implementations. It seems the precedence of the ternary operator is not the most obvious in the world.

Here are a test and a fix.