Removing the friend and signed modifiers from generated types