BUG: Fix updating treasury curves.

A transpose back to the serialization shape was left out.

Also, fixes empty return from update.