Add ChainShape.createChain that takes an array of floats