Fixed a bug in which CREATE FUNCTION (stored) was storing corrupted function information.