Added a spec that fails when type: Integer and nil is passed

Perhaps I misinterpreted your response when I posed this question in a previous comment on this thread---search for the string "Should either of these cases"

I see a subtle difference between not passing in the parameter at all, and explicitly passing in a nil. The question here is whether both of these are allowed in the case of an optional parameter with type validation.