Merged frame arguments and variables into a single locals array.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>