Validator and wallet bugfixes

* Fix bug in validator allowing negative fees to slip through
* Fix regression in wallet that marked outputs as spent before scanning them