REVIEW-3627: Use ModuleInternal in favor of Module where possible. Determine component ID type based on project path. Simplified component ID serializer.