Support maps in typespecs
Automatically define types for structs