[compiler] Allow to generate files in user_defined for specific tag
[compiler] Only threat locally defined tagged function

When generating the initial @tag@_funcs.hh, only cares about locally
defined method, not one declared by other modules.
For that purpose, change the predicate use to filter the list of
functions.
XXX It would be better if we have a more composable filter semantic!