Use fully qualified names in function and stencil definition macros

fixes #22