Support name resolution for class definitions