Flatten module type expressions during module-preprocess

Migrated from 
https://code.google.com/p/closure-compiler/issues/detail?id=1278

See also discussion here:
https://codereview.appspot.com/74410043/