Make Theme.resolveAttribute support resolveRefs

When resolveRefs is true, reference attributes must be walked until the actual resource is found.
Can you actually add an assert for the value here in addition to just testing their equivalence? Makes me wary invoking the library twice and comparing the results without a control comparison.