Improved the equality operators for the Line class cluster

Cross-subclass comparisons should be supported now