Make methods() ignore subroutines declared as functions

(issue #222)
Merge pull request #253 from carloslima/methods-ignore-functions

Make methods() ignore subroutines declared as functions for #222