0-based and build-array
fixes
fix to-list copy bug