move registry api to its own module, make it optional. fixes #16684 !strict
implement Text.getBoundingBox, fixes #11299 !strict