Revert "Better fix for comparing classes + Use global references to jclass instances used on a global scope."

This reverts commit 2111178e9c684b710b9e76a56c76d73004695618.