Made all jass types serializable and made all delegate visible internally.
Made the primitives and natives api serializable as well.