fix #232: Crash with local vars and subfunctions.