Added null and func type validators (easier to write).