Make methods() ignore subroutines declared as functions