infer function name for anonymous functions in objects which are bound or similar