Improve definition of AppliedFunction
include missing exceptions
runtime checks for ClassOrInterfaceDeclaration.apply
apply,interfaceApply,classApply #314
fix apply
pass type arguments to AppliedClass/Interface
Class.apply for #314, other stuff for ceylon/ceylon-js#196