Enable component processors and fix bug in class-name creation.

This change migrates the samples to 2.0, fixes some minor issues (which cause an infinite loop and OOM in Oracle/Apple JVMs, but for some reason not on OpenJDKs), and enables the processor for components.