Fixed compilation warnings and added default value for primitives while generating of NullSafeWrapper