I forgot to mention that the problem disappears when
call callee('table_name');
is replaced by
table_oid = 'table_name'::regclass; call callee(table_oid);
-Chris