Add ability to use private types inside module (close #4)