Fixed Unit.extends() function.
Fixed Unit.extends() function.

It was using the absolute keys of the mapping which didn't cause the
keys to be copied but being just re-assigned to the original key (so
it had no real effect).

janusnic/creator,yuhangwang/creator