Set name in the extended hook rather than during finalization

Otherwise name won't be available for attributes in a model with
:finalize set to false