refactor(kernel): use names instead of unsigned integers to encode level parameters

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>