feat(kernel): add unexpected_metavar_occurrence exception

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