Fix ceylon/ceylon-js#184 by checking outer metamodel && targs