Fix various issues around ItemAttributes.  Issue #10.