added latedef_func option support. (cf ticket #941)

removed functions from raising warnings with latedef
added latedef_func option for raising warnings with functions
latedef_func works only when latedef is enabled.