A commit that @jsan forgot
Use strong type for global relations, fixes #64