Corrected dimension problems when stacking in union
Added a test to verify this is functioning