Fix boneheaded Regexp match errors

* \x255 should have been \xff.
* use copy instead of clone (aka deepcopy) on __copy__ of __dict__
* calculate the maximum length for regexp sequences