Fix wrong variable name references
Fix invalid range in analysis when answer isn't a number
Add missing semicolons
Fix thrown exception when analysis plot is a constant line