Fix Module#dup for Modules with primitives and fixed instvars

(with @timfel)