Add a test for empty slice

---
Reverting 13f832b doesn’t make toml-test fail, and I couldn't figure why, so I added a test to TestEncode directly (which does fail if 13f832b is reverted).

Thanks for considering!