#50 Squeeze out singleton dimension
Better handle invalid options