Test for duplicate datum names being invalid
Huh, the output datum appears to work already.
Oops, actually wanted to check for duplicates
More extensive checks to output datum