Fixed iteration through timelines on local/global vars.
Merge pull request #863 from sorlok/timeline_crashy_fix

Fixed iteration through timelines on local/global vars.