Add extract_udtype function, partial code for another computed_fields variant