Added NestedStruct support [fixes #1]