Validate public arguments to ensure not null
Remove unused code in conditional comp case

When SIMPLE_JSON_DATACONTRACT and SIMPLE_JSON_NO_LINQ_EXPRESSION are both
false, there are multiple private methods that have no upstream callers.
This change makes sure those methods are also not compiled in this case.