Fix nullable annotations, and take care of uncaught CloneNotSupportedExceptions.