replaced the type-setter with a type_id-setter in the factory.

The type_id is already open for the mass-assignment (has to be, as this
is what comes down from the controller) - so replacing the setter gets
around the mass-assignment-issue.