Let sub_ref return zero if refs becomes negative, to allow better debug checking. Rev: src/svalue.h:1.114