[core.defaults] fix 'defaults' decorator in case qualname is provided