Bug #454167 - Expensive classloader search when using elements with primitive types

Authored-by: Rainer Jung <rainer.jung@kippdata.de>
Signed-off-by: Marcel Valovy <marcel.valovy@oracle.com>
Reviewed-by:
 Marcel Valovy <marcel.valovy@oracle.com>
 Martin Vojtek <martin.vojtek@oracle.com>