Fix typo in method extraction
Support ** in patterns

References #14.