Add missing return to BaseElement.unserialize