Fix serialisation of ExpireEntry.

Implement a custom serialisation for ExpireEntry (with big-endian used
for the height) so that they are actually sorted by ascending height in
the LevelDB when serialised.