DEF_INIT_CAST.
LOG_ERROR.
fix warning.
initWithSize.
layer property aliases.