Fill attribute_set_id and default type_id

This change fixes product attribute validation. Without it the "$attribute is not yet defined as an attribute of Product" error message will be shown for attributes belongs to a custom attribute set (e.g. Clothing attribute set and color attribute).