Fix array declarations
Fix ternary if/elsif/else statements