extends Type for Cons is still incorrect
fixed a mistake in the apply method for variants with valParams