Changes to enable validation for objects generated by InputFormatters.

UnitTests + FunctionalTests for the same.
You could do this separately if you'd like if it's blocking this PR. It's to make these work on Mono.