Add Base.hash and Base.isequal methods [closes #12].