Add support for __annotations__ and __kwdefaults__ on function objects.