Add handling of NIL values in translate-to-foreign for boxed-opaque