Add an equality test for a non-Rectangle instance

Otherwise you won't need the default case in the pattern match