Sockeye: Implement proper module instantiation check