Niti: small refactoring

Some small improvements in the interpreter code infrastructure.