Add a dump_component_methods() helper for debugging.