Bug 817610 - (follow-up) Fast path for strings in Attributes

Follow-up fix to bug 817610 to add the same optimization to Attributes and to
fix the regression it caused in Entity::_yield which should always return
a [locals, value] tuple.