Allow visiting methods and fields

This allows visiting both `MethodInfo` and `FieldInfo` elements.

See #5, #12, #13 for related details.