Refactored out keep checking
Refactored inline formulae tests
Refactored ref variable in inline ast decision
RIGHT can now be applied to an array