Fixes related to last commit: now checked that cached bounds/centroid are properly reset and copied. They weren't copied at all before and not always reset