Some bugfixes
Set type for new created features

If the style depends on the feature type, the type must be available
before the drawing.