Fix broken transferVariable

Fix for transferVariable().  Also added make_new_cell2() helper
function.
Conformed transferVariable() to API

Changed conditional debug output to print_debug method calls.  Added
saving and restoring $db,$proj.
Removed make_new_cell2().

Moved the code in this potentially dangerous function to inside
transferVariable().
Corrected variable name

delete —> remove
Fixed typo
Fixed cell transfer bug

Cells in destination column now have onset,offset, and ordinal set to
the source values.
Merge remote-tracking branch 'remotes/shohan/master'