copy the wrapped function module attribute correctly

Fixes: https://github.com/dobarkod/typedecorator/issues/3