singleton() beans do not apply lifecycle callbacks

Changed FunctionalConfiguration.singleton() to return a
BeanLookupFunction[T] instead of T, because bean lifecycle callbacks
were not called.

Issue: SCALA-12