CORE-1945: Expand variables in sql format preconditions

Execute expandExpressions on the formattedSql precondition sql-check line before adding the precondation to the changeset
you might as well change this to a switch case on the name