fix type declaration order for Context.defineType