Ensured all primitive classes are GC protected.