Make TyphoonParameterInjectedWithObjectInstance calculate isPrimitiveType without needing an argument.