Use CHOptimizedMethod in property method declarations, wrapped primitive setters and getters in a do-while loop, and removed an unnecessary if check