Add gid-form-object-sid utility fn.