fix iOS crash on device with AIR SDK 15

add "useLegacyAOT no" support
I really dislike ternary operator.. 
if(classRegistry[type]) {
var messageClasses:Vector.<Class> = classRegistry[type];
} else {
...
}