Fixed #1293: Make latedef=nofunc ignore inner functions.

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>