Fixed bug related to fun literals that changed a typed def’s variables