Added test for #1243
Fixed #1243 unioned default type argument in nested type