change sketch api to match Quil in functional-mode