Fixed display of RegExp objects.

Issue #278