Fixed shapePath param typo
Fixed Loft for closed paths
Added debug output for Loft