Add :methods to the stuff copied by %include.

Fixes #78.
Add test for f9fbbf90e