User-defined functions correctly classified as category 4 (fixes issue #15)