Clean up ==(JSValue, JSValue) with tuple matching

A nested switch is a sad switch. Tuple pattern matching makes this a bit more bearable.