small fixes
add cache to TfTypecalculated