odf: Handle "value()<>0" also.

The standard says "value()!=0", but LO didn't get the memo.
odf: fix parse problems.

Specifically UMRs on encountering an invalid reference.
Code cleanup.