Data generation now sets the generator type (field, method) correctly.