Speed up structs and slices.
Fix encoding nil Key.