Limit Cycles and Invariant Curves in a Class of Switching Systems with Degree Four