Start of 1.3.0; many warning fixes & small optimizations