Fix instance shared property issue by cloning during construction
Set class name props if name is defined