This introduces an option to symbolcollector for controlling whether
function-local classes and their methods should be collected.
The patch defaults the option to true, which is the existing behaviour.
We are suspecting this switch has caused blow ups in memory usage for some big
codebases, so would like the ability to turn them off.