An utility to lazy-initialize object properties