Allow to declare variables in code objects

Signed-off-by: Daniel Francis <francis@sugarlabs.org>