(#19558) Add resource and manifest context to type validation failures

When a resource fails validation with a validate method defined at the type
level (rather than individual parameters), provide additional context with the
resource name, manifest file and line number.
(#19558) Add manifest file/line to parameter validation failures

For consistency, provide manifest file and line number in the error message
when a parameter fails to validate.