Added ability to set type manualy, when wrapping modules