Add errorDeprecatedFunction

This utility function is used in the stubs that were left after the "shape" => "geometry" renaming. Since we don't test calling deprecated functions, I didn't catch that it hadn't been pushed.