[attribute] Add "length" atttribute to reset() tests

A "length" attribute is causing attr.reset() to fail
[attribute] Assume state data is an object

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