ml - convert ModuleName::ClassName to module_name__class_name

This fixes a problem I had with a namespaced model causing invalid DOT identifiers.
Not sure if this is the best fix, though.