This adds a new local API for pool allocation, and with it a corresponding function in the "local" import.