declare _Document class @final and make it use a freelist