fix tx-pool unspent output handling. fixes #26.

This *should* fix #26, but I'm not sure on the commented code. @indutny, let me know what you think about it.