Updated range insertion code for enhanced performance.
Updated position insertion code.
Fixed backwards expansion calling too many destructors nd added more tests to detect similar errors.