Refactor #3963: cc.Layer extended properties getter/setter defined and refactored in engine