Refactor internal property type to $type
So that we do not need to include weird special cases in the compiler to change send/@type to "send type".
So that we do not need to include weird special cases in the compiler to change send/@type to "send type".