[LDC] Add TypeFunction::sym

There are a few cases when TypeFunction::sym is used by LDC backend, but most important one that could not be avoided is when determining what kind of context pointer a function type has.