search: include attribute name at least for expr

Specification for expression can not decided in a straightforward way
because their values can be in multiple types.
This commit aims to be same form as ordinal attributes in the sense that
both are in hash and have "name".