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.
no bug; minor parser fixes: store Attribute type for elements, properly move string closure search, and support inequality expression