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'm pretty sure it can be done, i have seen something similar to it on GStreamer.