Raise when a gem lists a dependency twice

While the resolver handles this OK, no new gems should be created with a
dependency listed twice.