optimize resolution speed by storing complex function expressions (often result of inlining) in a variable and call resolve again. This allows faster typing in related functions.
fix