Fixed errors in dev branch on rendering rectangles in Highstock.