Use JSValConvertible more in codegen