[core-api] Externalization.externalizeObject now supports externalizing JsonElements