normalize the decorator usage.
support to match functions with keyword arguments.