#64: Hoisted functions fail to recognize variables that are declared later