enable function to return an object with curPath being returned

Usable by grunt-contrib-handlebars
Merge pull request #1 from stephanebachelier/master

Support namespace and declaration return values