Custom user functions are properly inserted into the internal-core-env. Fixes #22