Simplify function::target_type() for empty functions
Adding closed tickets to docs