Moving deref utility methods to Environment from interpreter; SQLExec emits SQL now.