Added base class for datalayer elements and equality operator overload.