API changed: all of the functions that looked-up or updated objects with
references took an optional (Maybe) reference value, but this makes no
sense. The reference value is always available, it should not be
optional. So I have unwrapped all of the references passed between these
functions from their 'Just' constructors.