Fixed wrong use of clear() when assigning implicit vectors and matrices to explicit vectors and matrices.