Fix #327: Rename set_local to setLocal.