slightly faster clone, and skip instanceof check on State
0.3.3