Similar Items: RELIC: Evaluating Complex Reasoning via the Recognition of Languages In-Context