fix(kernel/inductive): inductive datatype declaration validation bug pointed out by Cody Roux

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