De-serializing folders in tests broke recently because we started falling back to elements if something has an "Id" property, which folders do, but they are not Elements
DESCRIPTION:
Check if there is a discriminator before falling back to Element or GeometricElement. non-elements can't fallback to these types even if they have an Id or Representation property.
TESTING:
try to make/run a function that as a folder as an input. You will get a de serialization error on de serializing the input, then try with this change.
BACKGROUND:
DESCRIPTION:
TESTING:
FUTURE WORK:
REQUIRED:
CHANGELOG.md
.COMMENTS:
This change is![Reviewable](https://reviewable.io/review_button.svg)