CLEANUP: fix warnings, finish implementing map principle copy
constructor.