Changes to enable validation for objects generated by InputFormatters.

UnitTests + FunctionalTests for the same.
Added a few tests for this..