fixed a subtle bug in the lw_vector comparison operators