Return complete return type from method definition

Return complete return type cursor from method definition, rather than
just the return type.  This provides support for user-defined structs as
return types.