WELD-1430 Use optimized session keys if possible
WELD-1430 BeanIdentifierIndex updates
- improve logging, parameter checking
- fix thread-related visibility