Add tests to StakeDelegations and StakeHistory to ensure that the outer types serialize and deserialize correctly to/from the inner types.