Fix bug in onm.Model constructor that incorrect invoked the key generator...
... function instead of testing it for non-nullness as intended.