toplevel, codegen: implement pow for doubles