trim TYPE_SCRIPT properties processed by AbstractWidget