Allow to compare Arrays

Before this change it cannot compare Arrays and special hack was needed.