Added user bhack's SplitDimLayer.