Store name output index in nameindex.

Store the index of the name output in the nameindex.  This allows to
construct game transactions destroying the coin (for disaster or
destruct) without actually loading the real transaction from disk.