added support to call default value as a function if type is not function to generate defualt value
bumped version