don't apply 'recast' to attributes

Previously, recast was applied to element values and attribute values.
This will cause unneeded complexity in modify DocValue() and MapValue()
to extract attributed values.