[java] Null<T>'s real_type must be Dynamic. Closes #3023