Fixed some bugs in the shapes.square class.