Change code_lowered to take Callable instead of Function. Fixes #7636.