Issue #4294: Make cc.Component extendable in JSB