Make check for System.Core in existing references more thorough.