Bugfix  types default values

The first part of changes for issue #229