Support cross references in methods

Fixes #8