latedef check should ignore inner functions when set to "nofunc"