Add version and active flags to series

Once this has been merged I'll rewrite the serialization tests in a way similar to https://github.com/monetas/btcwallet/pull/50