Ensure quantity output with non-quantity input works for all relevant ufuncs