Fix encode/decode errors and PUTs past logical array size
Remove unused makePath
Merge from master