setting default values for complex objects
(cherry-picked from 7baea76)