Adds defaultType restoration.

When the block count reaches 0, the defaultType is being recreated.
Merge branch 'feature/recreate-default-type'