Substituted usage of deprecated Scala reflection calls with a more modern approach (TypeTags), removing two compiler warnings.