[Util] Register RegExp serializers via a global object.
[Util] Removed RegExp::RegisterTypes().