Fixed some bugs with array expressions and if statements.