fixing support for passing/returning empty structs. closes #34.