Remove 1.7 API uses related to Unsafe.