Restored registration of nested component classes (even without factory methods)

Issue: SPR-10865
Issue: SPR-10970
Polishing

Issue: SPR-10185
Consistency between InvocableHandlerMethod in web and messaging modules
Polishing