Return value with promise from generated func

That is imporant fix when you use smth like:
var value = object.$get(...)
Merge pull request #11 from kosz85/patch-2

Return value with promise from instance actions.