Added set & get accessors to the attribute's value so that changing it will automatically trigger change signal with Default changetype.
If entity or component ID is 0, generate a proper ID (if entity/component is replicated, generate an unacked ID on the client.)