Declare local var explicitly

Add `local` to *local var*.
Otherwise, *global var* may be replaced by *local var*. Like: some `class stack` (*supper global*) be assigned as *local var* in `SerDes()`.