Allow itemref targets with itemscope to be traversed

If the target element of an itemref has an itemscope attribute, it should still be traversed.