Make method browsing more flexible.

This is to prepare for browsing user defined methods.
Make parameter discovery more flexible.