Make it possible to have a unit without shadow, and not have it crashing
by checking for NULL and then not copying.
on second thought, let the copy function allow null and return null back
(be graceful with null)