Add essential missing sanity check on primitive inputs

2 jobs for master in 1 minute and 18 seconds (queued for 3 seconds)