Fixed a bug in the factory that occurred when the first attribute was a state.
Fixed a bug in the factory that occurred when the first attribute was a state.
When the chained creator contains contains one state object attribute with exact one primitive attribute, then simplify the chained creator.