Adding support to default integer return values

Implementing issue #95, for now adding support only for integers. If i is ok we can move on to other data types.
I agree, see #95 for more details. I think a new issue about this should be opened.