Add function scopes in ruby VM