Add getParameterType to Matcher and implement in derived matchers.

Also: Make AnyOf and AllOf have the same base class. Make the mismatch description for TypeSafeDiagnosingMatcher match TypeSafeMatcher.