Support for nested struct and slices

Support for nested struct and slices