add test for Null<T> unwrapping in inline functions (closes #3585)