Add AttrSerialize with spec