reverted change to catmulrom, fixed incorrectly
If a CatMulRom is not closed, duplicate the first and last points to let it build the curve correctly