Add an helper to get the functions by attribute from a type.