~ introduced 'parseReferences' parameter
~ removed special handling for "type modules"