#229 Add null-check before auto-unboxing in direct assignments