Fixes an issue with optional types resulting in null values instead of being skipped altogether.
Added a test case for structure name conflict.