[attribute] Assume state data is an object

Using Y.each() instead of Y.Object.each() failed when state data had a
"length" property