Fix display of RegExp objects. Issue #278